﻿@model SIFIET.Models.RegisterModel
@{
    ViewBag.Title = "Registro";
}
<h2>
    Registrar Nuevo Usuario</h2>
<p>
    La Contraseña requiere un minimo de @Membership.MinRequiredPasswordLength caracteres.
</p>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true, "")
    <div>
        <fieldset>
            <legend>Información de la Cuenta</legend>
            <div class="editor-label">
                <h3>@Html.LabelFor(m => m.UserName)</h3>
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.UserName)
                @Html.ValidationMessageFor(m => m.UserName)
            </div>
            <div class="editor-label">
                <h3>@Html.LabelFor(m => m.Email)</h3>
            </div>
            <div class="editor-field">
                @Html.TextBoxFor(m => m.Email)
                @Html.ValidationMessageFor(m => m.Email)
            </div>
            <div class="editor-label">
               <h3> @Html.LabelFor(m => m.Password)</h3>
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.Password)
                @Html.ValidationMessageFor(m => m.Password)
            </div>
            <div class="editor-label">
               <h3> @Html.LabelFor(m => m.ConfirmPassword)</h3>
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>
            <div>
                &nbsp
            </div>
            <div>
                <input type="submit" value="Registrar" class="ebutton blue" />
                &nbsp
                @Html.ActionLink("Regresar al listado de Usuarios", "Index", "", htmlAttributes: new { @class = "ebutton blue" })
            </div>
        </fieldset>
    </div>
    
}
